package com.caoji.item.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.caoji.entity.SpecParamDTO;
import com.caoji.entity.SpuDetailDTO;
import com.caoji.item.entity.Spu;
import com.caoji.item.entity.SpuDetail;
import com.caoji.item.mapper.SpuDetailMapper;
import com.caoji.item.mapper.SpuMapper;
import com.caoji.item.service.SpecParamService;
import com.caoji.item.service.SpuDetailService;
import com.caoji.item.service.SpuService;
import com.caoji.utils.JsonUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SpuDetailServiceImpl extends ServiceImpl<SpuDetailMapper, SpuDetail> implements SpuDetailService {
    @Autowired
    SpuService spuService;
    @Autowired
    SpecParamService specParamService;



    @Override
    public SpuDetailDTO qyerydetail(Long id) {
        return new SpuDetailDTO(getById(id));
    }

}